//
//  ViewController.m
//  tableView控制器
//
//  Created by Mingzhi on 2017/2/27.
//  Copyright © 2017年 PocketMAC. All rights reserved.
//  Git test---你好.忙..@@==@@？

#import "ViewController.h"
#import "TableViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    btn.frame = CGRectMake(100, 100, 100, 40);
    [btn setTitle:@"click me" forState:UIControlStateNormal];
    [btn setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
    [btn addTarget:self
            action:@selector(clickAction)
  forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
    
    NSNumber *number = [NSNumber numberWithBool:YES];
    NSNumber *number2 = [NSNumber numberWithChar:111];
    NSLog(@"%@ number class %@ number2's class %@", number, [number class], [number2 class]);
    
    NSValue *rectValue = [NSValue valueWithCGRect:CGRectMake(0, 0, 320, 568)];
    NSLog(@"rectValue %@", rectValue);
}

- (void)clickAction
{
    TableViewController *ctrl = [[TableViewController alloc] init];
    ctrl.title = @"列表视图";
    [self.navigationController pushViewController:ctrl animated:YES];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
